package com.huifaapp.mall.uitils;

import android.content.Context;

/**
 * Created by DM on 2018/1/23.
 */

public class DimenUtils {
    public static int dip2px(Context context, float dpValue) {
        float scale = context.getResources().getDisplayMetrics().density;
        return (int) (dpValue * scale + 0.5f);
    }
}
